 <meta charset="utf-8">
<div class="box box-primary" id="app_percentage_add">
            <form role="form" id="editForm" >
              <div class="box-body" style="overflow: hidden;">
              <div class="row">
              
              	<div class="col-md-2">
              		
              		<div class="form-group">
	                  <label for="name">执业人员姓名</label>
	                  <input type="text"  readonly="readonly" v-on:click="choosePractitioner" v-model="percentage.practitionerName"  name="practitionerName" class="form-control" id="practitionerName" placeholder="点击选择" required>
	                </div> 
	                
	               <div class="form-group">
	                  <label for="name">合办律师</label>
	                  <input type="text"  readonly="readonly" v-on:click="chooseCooperPractitioner"  v-model="percentage.cooperPractitionerName"  name="cooperPractitionerName" class="form-control" id="cooperPractitionerName" placeholder="点击选择" >
	               </div>
	                <div class="form-group">
	                  <label for="caseNum">案号</label>
	                  <input type="text"   v-model="percentage.caseNum"  name="caseNum" class="form-control" id="caseNum" placeholder="" required>
	                </div>
	                
	                <div class="form-group">
	               	 <label for="recaordTime">录入时间</label>
	                 <input type="text"  v-kmdate="{vmodel:'percentage.recaordTime',format:'yyyy-MM-dd'}"  class="form-control"  v-model="percentage.recaordTime" required>
	           		 </div>
	           		 
	              <div class="form-group">
	                  <label for="jieAnTime">结案时间</label>
	                 <input type="text"  v-kmdate="{vmodel:'percentage.jieAnTime',format:'yyyy-MM-dd'}"  class="form-control"  v-model="percentage.jieAnTime" required>
	               </div>
	               
	                 <div class="form-group">
	                  <label for="jieAnTime">代理合同签订时间</label>
	                 <input type="text"  v-kmdate="{vmodel:'percentage.heTongTime',format:'yyyy-MM-dd'}"  class="form-control"  v-model="percentage.heTongTime" required>
	               </div>
	               
	              <div class="form-group">
	                  <label for="caseReason">案由</label>
	                  <input type="text"   v-model="percentage.caseReason"  name="caseReason" class="form-control" id="caseReason" placeholder=""  required>
	              </div> 
              	</div>
              
               
              	<div class="col-md-2">
              	
              		<div class="form-group">
	                  <label for="zhiPaiPractitionerName">指派人员姓名</label>
	                  <input type="text"  readonly="readonly" v-on:click="chooseZhiPaiRenYuan" v-model="percentage.zhiPaiPractitionerName"  name="zhiPaiPractitionerName" class="form-control" id="zhiPaiPractitionerName" placeholder="点击选择" required>
	                </div> 
	                
	                
              		<div class="form-group">
	                  <label for="name">收案结清状态</label>
	                  	<select   id="caseStatusLiAn" v-model="percentage.caseLiAnStatus"  name="caseLiAnStatus"  class="form-control" required >
		                   <option value="">请选择</option>
		                    <option value="1">未结清</option>
		                    <option value="2">已结清</option>
		                  </select>
	                </div> 
	                
	               <div class="form-group">
	                  <label for="name">结案结清状态</label>
	                  <select   id="caseJieAnStatus" v-model="percentage.caseJieAnStatus"  name="caseJieAnStatus"  class="form-control" required >
		                   <option value="">请选择</option>
		                    <option value="1">未结清</option>
		                    <option value="2">已结清</option>
		                  </select>
	               </div>
	                  
	               <div class="form-group">
	                  <label for="caseTuiFeiStatus">退费结清状态</label>
	                  <select   id="caseTuiFeiStatus" v-model="percentage.caseTuiFeiStatus"  name="caseTuiFeiStatus"  class="form-control"  >
		                   <option value="">请选择</option>
		                   <option value="0">未发生</option>
		                    <option value="1">未结清</option>
		                    <option value="2">已结清</option>
		                    <option value="3">终止委托</option>
		                  </select>
	               </div>
	               
	                <div class="form-group">
	                  <label for="caseNum">委托人姓名</label>
	                  <input type="text"   v-model="percentage.weiTuoRenName"  name="weiTuoRenName" class="form-control" id="weiTuoRenName" placeholder="" required>
	                </div>
	                
	                 <div class="form-group">
	                  <label for="caseNum">委托人电话</label>
	                  <input type="text"   v-model="percentage.weiTuoRenPhone"  name="weiTuoRenPhone" class="form-control" id="weiTuoRenPhone" placeholder="" required>
	                </div>
	                
	                 <div class="form-group">
	                  <label for="caseNum">委托人地址</label>
	                  <input type="text"   v-model="percentage.weiTuoRenAddress"  name="weiTuoRenAddress" class="form-control" id="weiTuoRenAddress" placeholder="" required>
	                </div>
              	</div>
              	
              	    
              	<div class="col-md-2">
              		
	                  <div class="form-group">
	                  <label for="caseNum">对方当事人姓名</label>
	                  <input type="text"   v-model="percentage.duiFangDangShiRenName"  name="duiFangDangShiRenName" class="form-control" id="duiFangDangShiRenName" placeholder="" required>
	                </div>
	                
	                 <div class="form-group">
	                  <label for="caseNum">对方当事人电话</label>
	                  <input type="text"   v-model="percentage.duiFangDangShiRenPhone"  name="duiFangDangShiRenPhone" class="form-control" id="duiFangDangShiRenPhone" placeholder="" required>
	                </div>
	                
	                 <div class="form-group">
	                  <label for="caseNum">对方当事人地址</label>
	                  <input type="text"   v-model="percentage.duiFangDangShiRenAddress"  name="duiFangDangShiRenAddress" class="form-control" id="duiFangDangShiRenAddress" placeholder="" required>
	                </div>
	              
	               
	                <div class="form-group">
	                  <label for="caseNum">第三人姓名</label>
	                  <input type="text"   v-model="percentage.diSanRenName"  name="diSanRenName" class="form-control" id="diSanRenName" placeholder="" required>
	                </div>
	                
	                 <div class="form-group">
	                  <label for="caseNum">第三人电话</label>
	                  <input type="text"   v-model="percentage.diSanRenPhone"  name="diSanRenPhone" class="form-control" id="diSanRenPhone" placeholder="" required>
	                </div>
	                
	                 <div class="form-group">
	                  <label for="caseNum">第三人地址</label>
	                  <input type="text"   v-model="percentage.diSanRenAddress"  name="diSanRenAddress" class="form-control" id="diSanRenAddress" placeholder="" required>
	                </div>
	                
	                
              	 <div class="form-group">
	                  <label for="caseReason">案卷号</label>
	                  <input type="text"   v-model="percentage.caseFileNum"  name="caseFileNum" class="form-control" id="caseReason" placeholder=""  >
	              </div> 
              
              	 <div class="form-group">
	                  <label for="caseReason">合同号</label>
	                  <input type="text"   v-model="percentage.caseAgreementNum"  name="caseAgreementNum" class="form-control" id="caseReason" placeholder=""  >
	              </div> 
	              
	              
	              
              	</div>
              	
              	 	<div class="col-md-2">
              		
	                  <div class="form-group">
	                  <label for="feeYingShowDailiFei">应收代理费</label>
	                  <input type="number"   v-model="percentage.feeYingShowDailiFei"  name="feeYingShowDailiFei" class="form-control" id="feeYingShowDailiFei" placeholder="" required>
	                </div>
	                
	                 <div class="form-group">
	                  <label for="feeShiShowDaiLiFei">实收代理费</label>
	                  <input type="number"   v-model="percentage.feeShiShowDaiLiFei"  name="feeShiShowDaiLiFei" class="form-control" id="feeShiShowDaiLiFei" placeholder="" required>
	                </div>
	                
	                 <div class="form-group">
	                  <label for="feeShiQianDaiLiFei">实欠代理费</label>
	                  <input type="number"  readonly="readonly"   v-model="percentage.feeShiQianDaiLiFei"  name="feeShiQianDaiLiFei" class="form-control" id="feeShiQianDaiLiFei" placeholder="" required>
	                </div>
	              
	               
	                <div class="form-group">
	                  <label for="caseNum">提成比例</label>
	                  <input type="number"   v-model="percentage.tiChengBiLi"  name="tiChengBiLi" class="form-control" id="tiChengBiLi" placeholder="" required>
	                </div>
	                
	                 <div class="form-group">
	                  <label for="feeTiChengJinEr">提成金额</label>
	                  <input type="number"  readonly="readonly"  v-model="percentage.feeTiChengJinEr"  name="feeTiChengJinEr" class="form-control" id="feeTiChengJinEr" placeholder="" required>
	                </div>
	                
	                 <div class="form-group">
	                  <label for="caseNum">已提金额</label>
	                  <input type="number"    v-model="percentage.feeYiTiJinEr"  name="feeYiTiJinEr" class="form-control" id="feeYiTiJinEr" placeholder="" required>
	                </div>
	                
	                <div class="form-group">
	                  <label for="caseNum">未提金额</label>
	                  <input type="number"    v-model="percentage.feeWeiTiJinEr"  name="feeWeiTiJinEr" class="form-control" id="feeWeiTiJinEr" placeholder="" required>
	                </div>
	                
              	</div>
              	
              <div class="col-md-2">
              		
	                  <div class="form-group">
	                  <label for="feeGuiDangFei">归档费</label>
	                   <select  id="feeGuiDangFei" v-model="percentage.feeGuiDangFei"  name="feeGuiDangFei"  class="form-control" required >
		                   <option value="">请选择</option>
		                    <option value="0">0</option>
		                    <option value="500">500：10000及以下</option>
		                    <option value="1000">1000：10000以上</option>
		                  </select>
	                </div>
	                 <div class="form-group">
	                  <label for="feeGuiDangFei">已提归档费</label>
	                   <select  id="feeYiTiGuiDangFei" v-model="percentage.feeYiTiGuiDangFei"  name="feeYiTiGuiDangFei"  class="form-control" required >
		                    <option value="0">0</option>
		                    <option value="500">500</option>
		                    <option value="1000">1000</option>
		                  </select>
	                </div>
	                
	                 <div class="form-group">
	                  <label for="feeYingKaiFaPiaoJinEr">应开发票金额</label>
	                  <input type="number"   v-model="percentage.feeYingKaiFaPiaoJinEr"  name="feeYingKaiFaPiaoJinEr" class="form-control" id="feeYingKaiFaPiaoJinEr" placeholder="" required>
	                </div>
	                
	                 <div class="form-group">
	                  <label for="feeYiKaiFaPiaoJinEr">已开发票金额</label>
	                  <input type="number"   v-model="percentage.feeYiKaiFaPiaoJinEr"  name="feeYiKaiFaPiaoJinEr" class="form-control" id="feeYiKaiFaPiaoJinEr" placeholder="" required>
	                </div>
	              
	               
	                <div class="form-group">
	                  <label for="caseNum">已开发票号</label>
	                  <input type="text"   v-model="percentage.yiKaiFaPiaoHao"  name="yiKaiFaPiaoHao" class="form-control" id="yiKaiFaPiaoHao" placeholder="" required>
	                </div>
	                
	                 <div class="form-group">
	                  <label for="feeWeiKaiFaPiaoJinEr">未开发票金额</label>
	                  <input type="number" readonly="readonly"   v-model="percentage.feeWeiKaiFaPiaoJinEr"  name="feeWeiKaiFaPiaoJinEr" class="form-control" id="feeWeiKaiFaPiaoJinEr" placeholder="" required>
	                </div>
	                
	                 <div class="form-group">
	                  <label for="feeBaoXiaoFeiYong">报销费用</label>
	                  <input type="number"   v-model="percentage.feeBaoXiaoFeiYong"  name="feeBaoXiaoFeiYong" class="form-control" id="feeBaoXiaoFeiYong" placeholder="" required>
	                </div>
	                
	              
              	</div>
              	
              	 <div class="col-md-2">
	                
	                  <div class="form-group">
	                  <label for="caseNum">实发提成</label>
	                  <input type="number" readonly="readonly"    v-model="percentage.feeShiFaTiCheng"  name="feeShiFaTiCheng" class="form-control" id="feeShiFaTiCheng" placeholder="" required>
	                </div>
	                
	                
	                 <div class="form-group">
	                  <label for="feeTuiFeiJinEr">退费金额</label>
	                  <input type="number"   v-model="percentage.feeTuiFeiJinEr"  name="feeTuiFeiJinEr" class="form-control" id="feeTuiFeiJinEr" placeholder="" required>
	                </div>
	                
	                 <div class="form-group">
	                  <label for="feeLvShiYingFanHuanTiCheng">律师应返还提成</label>
	                  <input type="number" readonly="readonly"    v-model="percentage.feeLvShiYingFanHuanTiCheng"  name="feeLvShiYingFanHuanTiCheng" class="form-control" id="feeLvShiYingFanHuanTiCheng" placeholder="" required>
	                </div>
	              
	               
	                <div class="form-group">
	                  <label for="feeLvShiYiFanHuanTiCheng">律师已返还提成</label>
	                  <input type="text"   v-model="percentage.feeLvShiYiFanHuanTiCheng"  name="feeLvShiYiFanHuanTiCheng" class="form-control" id="feeLvShiYiFanHuanTiCheng" placeholder="" required>
	                </div>
	                
	                 <div class="form-group">
	                  <label for="feeWeiKaiFaPiaoJinEr">律师未返还提成</label>
	                  <input type="number" readonly="readonly"     v-model="percentage.feeLvShiWeiFanHuanTiCheng"  name="feeLvShiWeiFanHuanTiCheng" class="form-control" id="feeLvShiWeiFanHuanTiCheng" placeholder="" required>
	                </div>
	                
	                 <div class="form-group">
	                  <label for="feeYingFanFaPiaoShuiJin">应返还发票税金</label>
	                  <input type="number"   v-model="percentage.feeYingFanFaPiaoShuiJin"  name="feeYingFanFaPiaoShuiJin" class="form-control" id="feeYingFanFaPiaoShuiJin" placeholder="" required>
	                </div>
	                
	                <div class="form-group">
	                  <label for="feeYiFanFaPiaoShuiJin">已返还发票税金</label>
	                  <input type="number"   v-model="percentage.feeYiFanFaPiaoShuiJin"  name="feeYiFanFaPiaoShuiJin" class="form-control" id="feeYiFanFaPiaoShuiJin" placeholder="" required>
	                </div>
              	</div>
              	
              </div>
              
              </div>
              <!-- /.box-body -->
              <div class="box-footer">
                 <button type="button" class="btn btn-default" v-on:click="cancle">取消</button>
                 <button type="button"  ref="submitButtonx" class="btn btn-info pull-right"  v-on:click="add">提交</button>
              </div>
            </form>
		
<script type="text/javascript">
var vm = new Vue({
        el: '#app_percentage_add',
        data: {
        	percentage:{
		      	id: null,
		      	practitionerId: null,
		      	practitionerName: null,
		      	cooperPractitionerId: null,
		      	cooperPractitionerName: null,
		      	zhiPaiPractitionerId: null,
		      	zhiPaiPractitionerName: null,
		      	
		      	caseNum: null,
		      	caseFileNum: null,
		      	caseAgreementNum: null,
		      	
		      	recaordTime: null,
		      	jieAnTime: null,
		      	heTongTime: null,
		      	
		      	caseReason: null,
		      	
		      	caseLiAnStatus: null,
		      	caseJieAnStatus: null,
		      	caseTuiFeiStatus: null,
		      	
		      	caseProgress: null,
		      	
		      	weiTuoRenName: null,
		      	weiTuoRenPhone: null,
		      	weiTuoRenAddress: null,
		      	
		      	duiFangDangShiRenName: null,
		      	duiFangDangShiRenPhone: null,
		      	duiFangDangShiRenAddress: null,
		      	diSanRenName: null,
		      	diSanRenPhone: null,
		      	diSanRenAddress: null,
		      	orgId: null,
		      	remark: null,
		      	
		      	feeYingShowDailiFei: 0,
		      	feeShiShowDaiLiFei: 0,
		      	feeShiQianDaiLiFei: 0,
		      	tiChengBiLi: null,
		      	feeTiChengJinEr: 0,
		      	feeYiTiJinEr: 0,
		      	feeWeiTiJinEr: 0,
		      	
		      	feeGuiDangFei: null,
		      	feeYiTiGuiDangFei: 0,
		      	feeYingKaiFaPiaoJinEr: 0,
		      	feeYiKaiFaPiaoJinEr: 0,
		      	yiKaiFaPiaoHao: 0,
		      	feeWeiKaiFaPiaoJinEr: 0,
		      	feeBaoXiaoFeiYong: 0,
		      	feeShiFaTiCheng: 0,
		      	
		      	feeTuiFeiJinEr: 0,
		      	feeLvShiYingFanHuanTiCheng: 0,
		      	feeLvShiYiFanHuanTiCheng: 0,
		      	feeLvShiWeiFanHuanTiCheng: 0,
		      	feeYingFanFaPiaoShuiJin: 0,
		      	feeYiFanFaPiaoShuiJin: 0,
		      	
		      	yuanGaoName: null,
		      	yuanGaoPhone: null,
		      	yuanGaoAddress: null,
		      	beiGaoName: null,
		      	beGaoPhone: null,
		      	beGaoAddress: null

      	  },
      		sessionUser: {},
           bus:new Vue()
        },
        watch: {
        	'percentage.feeYingShowDailiFei': function (val, oldVal) {//应收代理费
        		
        		this.percentage.feeShiQianDaiLiFei=this.percentage.feeYingShowDailiFei*1.0 - this.percentage.feeShiShowDaiLiFei*1.0;//3、实欠代理费=应收代理费-实收代理费
        		
        		
        		//this.percentage.feeYingKaiFaPiaoJinEr=this.percentage.feeYingShowDailiFei*1.0;//9、应开发票金额（=应收代理费金额）（手填）
            },
           'percentage.feeShiShowDaiLiFei': function (val, oldVal) {//实收代理费金额
        	   this.percentage.feeShiQianDaiLiFei=this.percentage.feeYingShowDailiFei*1.0 - this.percentage.feeShiShowDaiLiFei*1.0;//3、实欠代理费=应收代理费-实收代理费
        	  
        	   this.percentage.feeTiChengJinEr=this.percentage.feeShiShowDaiLiFei*1.0 * this.percentage.tiChengBiLi*0.01;//21、提成金额=实收代理费×提成比例
        	   
        	   //this.percentage.feeYiKaiFaPiaoJinEr=this.percentage.feeShiShowDaiLiFei*1.0;//10、已开发票金额（=实收代理费金额）（手填）
            	
            }, 
            'percentage.tiChengBiLi': function (val, oldVal) {//提成比例
            	this.percentage.feeLvShiYingFanHuanTiCheng=this.percentage.feeTuiFeiJinEr * 1.0 * this.percentage.tiChengBiLi*0.01;//16、律师应返还提成=退费金额*提成比例
            	
            	  this.percentage.feeTiChengJinEr=this.percentage.feeShiShowDaiLiFei*1.0 * this.percentage.tiChengBiLi*0.01;//21、提成金额=实收代理费×提成比例
            },
            'percentage.feeTuiFeiJinEr': function (val, oldVal) {//退费金额
				this.percentage.feeLvShiYingFanHuanTiCheng=this.percentage.feeTuiFeiJinEr * 1.0 * this.percentage.tiChengBiLi*0.01;//16、律师应返还提成=退费金额*提成比例
            },
            'percentage.feeGuiDangFei': function (val, oldVal) {//归档费
            	//this.percentage.feeTiChengJinEr=this.percentage.feeGuiDangFei*1.0 + this.percentage.feeBaoXiaoFeiYong*1.0 + this.percentage.feeShiFaTiCheng*1.0;//5、提成金额（提成总额）=归档费+报销费用+实发提成
            this.percentage.feeShiFaTiCheng=this.percentage.feeTiChengJinEr-this.percentage.feeGuiDangFei-this.percentage.feeBaoXiaoFeiYong//22.	实发提成=提成金额-归档-报销费用
            },
            'percentage.feeBaoXiaoFeiYong': function (val, oldVal) {//报销费用
            	//this.percentage.feeYiTiJinEr=this.percentage.feeShiFaTiCheng*1.0 + this.percentage.feeBaoXiaoFeiYong*1.0; //6、已提金额=实发提成+报销费用
            	//this.percentage.feeTiChengJinEr=this.percentage.feeGuiDangFei*1.0 + this.percentage.feeBaoXiaoFeiYong*1.0 + this.percentage.feeShiFaTiCheng*1.0;//5、提成金额（提成总额）=归档费+报销费用+实发提成
          	 this.percentage.feeShiFaTiCheng=this.percentage.feeTiChengJinEr-this.percentage.feeGuiDangFei-this.percentage.feeBaoXiaoFeiYong//22.	实发提成=提成金额-归档-报销费用
            },
            'percentage.feeShiFaTiCheng': function (val, oldVal) {//实发提成
            	//this.percentage.feeYiTiJinEr=this.percentage.feeShiFaTiCheng*1.0 + this.percentage.feeBaoXiaoFeiYong*1.0; //6、已提金额=实发提成+报销费用
            	//this.percentage.feeTiChengJinEr=this.percentage.feeGuiDangFei*1.0 + this.percentage.feeBaoXiaoFeiYong*1.0 + this.percentage.feeShiFaTiCheng*1.0;//5、提成金额（提成总额）=归档费+报销费用+实发提成
            },
			'percentage.feeYingKaiFaPiaoJinEr': function (val, oldVal) {//应开发票金额
				this.percentage.feeWeiKaiFaPiaoJinEr=this.percentage.feeYingKaiFaPiaoJinEr*1.0 - this.percentage.feeYiKaiFaPiaoJinEr*1.0//12、未开发票金额=应开发票金额-已开发票金额
            },
			'percentage.feeYiKaiFaPiaoJinEr': function (val, oldVal) {//已开发票金额
				this.percentage.feeWeiKaiFaPiaoJinEr=this.percentage.feeYingKaiFaPiaoJinEr*1.0 - this.percentage.feeYiKaiFaPiaoJinEr*1.0//12、未开发票金额=应开发票金额-已开发票金额
            },
			'percentage.feeTiChengJinEr': function (val, oldVal) {//提成金额
				//this.percentage.feeWeiTiJinEr=this.percentage.feeTiChengJinEr*1.0 - this.percentage.feeYiTiJinEr*1.0//7、未提金额=提成金额-已提金额
				this.percentage.feeShiFaTiCheng=this.percentage.feeTiChengJinEr-this.percentage.feeGuiDangFei-this.percentage.feeBaoXiaoFeiYong//22.	实发提成=提成金额-归档-报销费用
            },
            'percentage.feeYiTiJinEr':  function (val, oldVal) {//已提金额
				//this.percentage.feeWeiTiJinEr=this.percentage.feeTiChengJinEr*1.0 - this.percentage.feeYiTiJinEr*1.0 //7、未提金额=提成金额-已提金额
            },
			'percentage.feeLvShiYingFanHuanTiCheng': function (val, oldVal) {//律师应返还提成
				this.percentage.feeLvShiWeiFanHuanTiCheng=this.percentage.feeLvShiYingFanHuanTiCheng*1.0 - this.percentage.feeLvShiYiFanHuanTiCheng*1.0;//18、律师未返还提成=律师应返还提成-律师已返还提成
            },
			'percentage.feeLvShiYiFanHuanTiCheng': function (val, oldVal) {//律师已返还提成
				this.percentage.feeLvShiWeiFanHuanTiCheng=this.percentage.feeLvShiYingFanHuanTiCheng*1.0 - this.percentage.feeLvShiYiFanHuanTiCheng*1.0;//18、律师未返还提成=律师应返还提成-律师已返还提成
            }
          },

        mounted:function(){
        	var _this=this;
        	this.loadNextCaseNum();
        	this.getNowFormatDate();
        	
        	
        	var ajaxrUrl="/auth/getUserInfo"
        	zfesAjax.ajaxTodo(ajaxrUrl,{}, function(result){
        		_this.sessionUser=result.data.sessionUser;
    			var role=_this.sessionUser.role;
    			if("USER"==role){
    				_this.percentage.practitionerName=_this.sessionUser.userName;
    				_this.percentage.practitionerId=_this.sessionUser.userId;
    			}
    		});
        	
   	  	},
         methods: {
         	 getNowFormatDate: function () {
         		let _this=this;
        	        var date = new Date();
        	        var seperator1 = "-";
        	        var year = date.getFullYear();
        	        var month = date.getMonth() + 1;
        	        var strDate = date.getDate();
        	        if (month >= 1 && month <= 9) {
        	            month = "0" + month;
        	        }
        	        if (strDate >= 0 && strDate <= 9) {
        	            strDate = "0" + strDate;
        	        }
        	        var currentdate = year + seperator1 + month + seperator1 + strDate;
        	        _this.percentage.createTime=currentdate;
        	    }, 
        	 loadNextCaseNum:function(){
        		 let _this=this;
        		 let url="tcms/percentage/loadNextCaseNum";
        		 zfesAjax.ajaxTodo(url,{}, function(data){
            		 _this.percentage.caseNum=data.data.nextCaseNum;
            	 });
        	 },
        	 add: function () {
        		 let _this=this;
        	    	if($("#editForm").valid()){
        	    		//_this.checkpAndD();
        	    		_this.doRealAdd();
        	    	}
        	    },
        	    doRealAdd: function(){
        	    	let _this=this;
        	    	let addUrl="/tcms/percentage/addPercentage";
        	    	_this.$refs.submitButtonx.setAttribute("disabled","disabled"); 
    	    		zfesAjax.ajaxTodo(addUrl,_this.$data.percentage, function(data){
    	    			_this.$refs.submitButtonx.removeAttribute("disabled");
    	    			alertSwal.successText(data.message);
    	    			zfesLayerEditDg.close();
    	    		},function(data){
    	    			_this.$refs.submitButtonx.removeAttribute("disabled"); 
    	    			alertSwal.warningText(data.message);
    	    		});
        	    },
        	    chooseZhiPaiRenYuan: function(){
        	  		let _this=this;
        	    	let url="/view/tcms/practitioner/practitioner.lookback.html";
        	    	let param={}
        	    	zfesLayerEditDg.lookback(url, param, "指派人员选择", 800, function() {
        	    		 let data =zfesLayerEditDg.getCallBackParam();
        	    		 _this.percentage.zhiPaiPractitionerName=data.name;
        	    		 _this.percentage.zhiPaiPractitionerId=data.id;
        	    	})
        	  	  },
        	  
        	  	choosePractitioner: function(){
        	  		var _this=this;
        	  		if("USER"==_this.sessionUser.role){
        	  			alertSwal.warningText("当前为非管理员登录，只能填写自己相关数据");
        	  			return;
        			}
        	  		
        	    	let url="/view/tcms/practitioner/practitioner.lookback.html";
        	    	let param={}
        	    	zfesLayerEditDg.lookback(url, param, "转入律师", 800, function() {
        	    		 let data =zfesLayerEditDg.getCallBackParam();
        	    		 _this.percentage.practitionerName=data.name;
        	    		 _this.percentage.practitionerId=data.id;
        	    	})
        	  	  },
        	  	chooseCooperPractitioner: function(){
        	  		let _this=this;
        	    	let url="/view/tcms/practitioner/practitioner.lookback.html";
        	    	let param={}
        	    	zfesLayerEditDg.lookback(url, param, "合办律师", 800, function() {
        	    		 let data =zfesLayerEditDg.getCallBackParam();
        	    		 _this.percentage.cooperPractitionerName=data.name;
        	    		 _this.percentage.cooperPractitionerId=data.id;
        	    	})
        	  	  },
        	    cancle:function(){
        	    	zfesLayerEditDg.close();
        	    	 
        	    }
        }
    })

 </script>
</div>